import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const router = new VueRouter({
    mode: 'hash',
    routes: [
        {
            path: '*',
            redirect: '/home2'
        },
        {
            path: '/',
            redirect: '/home2'
        },
        {
            path: '/home2',
            component: ()=>import('@/views/Home/index.vue')
        },
        {
            path: '/about',
            component: ()=>import('@/views/About/index.vue')
        }
    ]
})
export default router